package edu.xidian.bdilab.jrbigdata.controller.admin;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import  edu.xidian.bdilab.jrbigdata.service.admin.bankadmin.bankManageService;
@RestController
@Api(tags = {"BankManage-金融机构信息管理"})
public class BankManageController {

    @Autowired
    bankManageService bankManageService;
    @RequestMapping(value = "admin/bankManage/check", method = RequestMethod.POST)
    public ResponseResult bankManage_check()throws Exception
    {
          ResponseResult responseResult = bankManageService.bankManage_check();
          return responseResult;
    }
  @RequestMapping(value = "admin/bankManage/delete", method = RequestMethod.POST)
    public ResponseResult  bankManage_delete(@RequestParam @ApiParam(value = "银行用户名") String userName)throws Exception
    {
       ResponseResult responseResult=bankManageService.bankManage_delete(userName);
       return responseResult;
    }

}
